﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using FileDFS.Model.Enum;
using System.Runtime.Serialization;
/*
 * Coder:Tieria
 * WriteTime:2015.5.15
 * FileName:ImageZoomContext.cs
 * ReMark:图片缩放的上下文
 */
namespace FileDFS.Utils
{
    [Serializable]
    [DataContract]
    public class ImageZoomContext
    {
        /// <summary>
        /// 原图
        /// </summary>
        public Image SourceImage { get; set; }
        /// <summary>
        /// 生成缩略图的类型
        /// </summary>
        public ImageCutModeEnum Mode { get; set; }
        /// <summary>
        /// 宽度
        /// </summary>
        public int ZoomWidth { get; set; }
        /// <summary>
        /// 高度
        /// </summary>
        public int ZoomHight { get; set; }
        /// <summary>
        /// 生成的缩略图的相关参数
        /// </summary>
        public ThumbnailSize Size { get; set; }

    }
}
